package com.taowan.xunbaozl.morning_speak.design_pattern.day11;

/**
 * com.taowan.xunbaozl.morning_speak.design_pattern.day11.app
 * Created by diql on 2016/3/6.
 */
public class ConCreateObserver implements Observer {
    private ConCreateSubeject conCreateSubeject;
    private String name;
    public ConCreateObserver(ConCreateSubeject conCreateSubejct, String name) {
        this.conCreateSubeject = conCreateSubejct;
        this.name = name;
    }
    @Override
    public void update() {
        System.out.println("status is " + conCreateSubeject.getStatus() + this.name + " is upate" );
    }
}
